<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            padding: 0;
            margin: 0;
            list-style: none;
        }

        a {
            text-decoration: none;
        }
        .container{
            width: 230px;
            border: 1px solid rebeccapurple;
        }
        ul{
            width: 180px;
            margin-left: 40px;
        }
        ul li{
            height: 32px;
        }
        ul li span.first{
            width: 35px;
            height: 32px;
            border: 1px solid rebeccapurple;
            float: left;
            margin-left: -37px;
            text-align: center;
            line-height: 32px;
        }
        ul li span.song{
            width: 180px;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            float: left;
            height: 32px;
            line-height: 32px;
        }
        ul li:hover span.song{
            width: 96px;
        }
        ul li>div{
            width: 82px;
            height: 19px;
            border: 1px solid red;
            float: left;
            margin-top: 7px;
            display: none;
        }
        ul li:hover .my-div{
            display: inline-block;
        }
    </style>
</head>

<body>
    <div class="container">
        <ul>
            <li>
                <span class="first">1</span>
                <span class="song">
                    不再 Ft.直火帮XZT（Prod.sketchmyname&HXRXKILLER）
                </span>
                <div class="my-div"></div>
            </li>
            <li>
                <span class="first">1</span>
                <span class="song">
                    不再
                </span>
                <div class="my-div"></div>
            </li>
            <li>
                <span class="first">1</span>
                <span class="song">
                    不再 Ft.直火帮
                </span>
                <div class="my-div"></div>
            </li>
            <li>
                <span class="first">1</span>
                <span class="song">
                    不再 Ft.直火帮
                </span>
                <div class="my-div"></div>
            </li>
        </ul>
    </div>
    
</body>

</html>